package com.gglx.flex.components
{
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.events.TouchEvent;

	public class GGImageButton extends GGImage
	{
		public function GGImageButton()
		{
			super();

			addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
			addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler, false, 0, true);
		}

		protected function mouseOutHandler(event:Event):void
		{
			alpha = 1;
		}

		protected function mouseDownHandler(event:Event):void
		{
			alpha = .8;
		}
	}
}
